function AppData(){

	// try loading these items from a cookie...
	var cookie = new Mojo.Model.Cookie("favorites");
	this.favorites = cookie.get();
	
	if (!this.favorites) {
		this.favorites = [];
	}
	
	this.text_searched = false;
	this.text_found = false;
	this.recitation_found = false;
}


AppData.prototype.saveFavorites = function () {
	
	var cookie = new Mojo.Model.Cookie("favorites");
	cookie.put(this.favorites);
	
}


var appData = new AppData();